package net.anzix.jhacks.flexclipse.wizards;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

public class FlexProjectNameWizardPage extends WizardPage {

	Label projectNameLabel;
	Text projectNameText;

	Composite composite;
	
	public FlexProjectNameWizardPage(String pageName) {
		super(pageName);
	}

	public FlexProjectNameWizardPage(String pageName, String title,
			ImageDescriptor titleImage) {
		super(pageName, title, titleImage);
	}

	public void createControl(Composite parent) {
		
		composite = new Composite(parent, parent.getStyle());

		projectNameLabel = new Label(composite, composite.getStyle());
		projectNameLabel.setText("Flex project name");
		projectNameText = new Text(composite, composite.getStyle());
		projectNameText.setToolTipText("The name of the flex project to create");
		setControl(composite);
	}

	@Override
	public boolean isPageComplete() {
		// TODO Auto-generated method stub
		return super.isPageComplete();
	}

	String getProjectName() {
		return projectNameLabel.getText();
	}
	
}
